import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

import { IonicVue } from "@ionic/vue";

/* Core CSS required for Ionic components to work properly */
import "@ionic/vue/css/core.css";

/* Basic CSS for apps built with Ionic */
import "@ionic/vue/css/normalize.css";
import "@ionic/vue/css/structure.css";
import "@ionic/vue/css/typography.css";

/* Optional CSS utils that can be commented out */
import "@ionic/vue/css/padding.css";
import "@ionic/vue/css/float-elements.css";
import "@ionic/vue/css/text-alignment.css";
import "@ionic/vue/css/text-transformation.css";
import "@ionic/vue/css/flex-utils.css";
import "@ionic/vue/css/display.css";
import "@ionic/vue/css/palettes/dark.system.css";

//初始化esri的apikey
import esriConfig from "@arcgis/core/config.js";
esriConfig.apiKey =
  "AAPTxy8BH1VEsoebNVZXo8HurN8Sio8c3li1FbRdv5oV0rOvxA0CW5O8iiU8AfRF2ZCzG7VpzmJeQGoWIgB9G1EkvuWLWgi7L1yLLbcgMOPm4M5vrnL_jGAz2msOSIdCyiBON-S20LnZ7Gi4qnwvg8zJQxmjz_vZFhkXxHHQ6eYuq9YlLUTw3pyB-HEVINGiJv-H0rlIw_EnmNnHc2wJOBWFE93rGLlPcihvdZ71nzPehg_J_TH5AyAdWkn-0hg-tGwgAT1_jXJVmAiq";
//初始化esri语言
import * as intl from "@arcgis/core/intl.js";
intl.setLocale("zh-CN");

import pinia from "./stores";

/* Theme variables */
import "./theme/variables.css";

const app = createApp(App).use(IonicVue).use(router).use(pinia);

router.isReady().then(() => {
  app.mount("#app");
});
